var router = require("express").Router();
var PF = require("../controllers/utils/page.factory");
var CommonUtils = require("../lib/common-utils");

router.all("/ajax/:type", CommonUtils.Common.RequestExtend, PF.Ajax.Service);
router.all("/service/fileupload", CommonUtils.Common.RequestExtend, PF.Service.FileUpload);
router.get("/service/img/temp/:filename.jpg", CommonUtils.Common.RequestExtend, PF.Service.Image.Temp);
router.get("/service/img/user/:type/:id/:size?.jpg", CommonUtils.Common.RequestExtend, PF.Service.Image.User);
router.get("/service/img/report/:id/:name.jpg", CommonUtils.Common.RequestExtend, PF.Service.Image.Report);
router.get("/service/img/event/:id/:name.jpg", CommonUtils.Common.RequestExtend, PF.Service.Image.Event);
router.get("/service/download/app/:type?", CommonUtils.Common.RequestExtend, PF.Service.Download.App);

module.exports = router;